#ifndef __opengl_thread_control_H__
#define __opengl_thread_control_H__

#include "../COpenGLDriver.h"
#include "IrrCompileConfig.h"

class opengl_thread_control{
	public:
	irr::video::COpenGLDriver*driver;
	irr::CIrrDeviceLinux*device;
	opengl_thread_control(irr::video::COpenGLDriver*dv,irr::CIrrDeviceLinux*d){
			driver=dv;
		device=d;
	}
	
	void makeCurrent(){
		MARKER;
	   	if (!glXMakeContextCurrent(driver->X11Display,driver->Drawable,driver->Drawable, device->Context));
	   		printf("-------Can't set default context2\n");
	   	MARKER;
	}
};
#endif
